package org.blogwu.learn.jvmlearn.params;

/**
 * “-XX:NewSize=10485760 -XX:MaxNewSize=10485760 -XX:InitialHeapSize=20971520 -XX:MaxHeapSize=20971520 -XX:SurvivorRatio=8
 *   -XX:MaxTenuringThreshold=15 -XX:PretenureSizeThreshold=10485760 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC
 *  -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:gc.log”
 */
public class Test2 {

    // eden:8m  from:to=1m
    public static void main(String[] args) {
//        System.gc();
        byte[] arrays2= new byte[128*1024];

        byte[] arrays= new byte[2*1024*1024];
        arrays= new byte[2*1024*1024];
        arrays= new byte[2*1024*1024];
        arrays=null;

//        byte[] arrays22= new byte[128*1024];

//        byte[] arrays3= new byte[2*1024*1024];

        byte[] arrays4= new byte[2*1024*1024];
        arrays4= new byte[2*1024*1024];
        arrays4= new byte[2*1024*1024];
        arrays4= new byte[128*1024];
        arrays4=null;

        byte[] arrays5= new byte[2*1024*1024];
    }
}
